﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice_01
{
    class Program
    {
        static void Main(string[] args)
        {
            String s;
            double op1;//第一个操作数
            double op2;//第二个操作数
            double result=0;
            Console.WriteLine("请输入");
            s = Console.ReadLine();

            String[] array;
            array = s.Split(' ');
            op1 = double.Parse(array[0]);
            op2 = double.Parse(array[2]);
            switch (array[1])
            {
                case "+":
                    result = op1 + op2;
                    break;
                case "-":
                    result = op1 - op2;
                    break;
                case "*":
                    result = op1 * op2;
                    break;
                case "/":
                    result = op1 / op2;
                    break;
                default:
                    Console.WriteLine("无法计算");
                    break;
            }
            Console.WriteLine($"最终结果为：{result}");


        }
    }
}
